package com.logicwin.aibala.model.androidSWInfo;

import java.sql.Timestamp;
import java.util.List;


/**
 * 软件评论信息句柄
 * 
 * @author GuoDing
 * @since 2011-06-07
 */
public class APKComments extends APKSubInfo {
	/** 
	 * 用户评论列表 
	 */
	private List<UserComments> userCommentsList = null;
	
	public APKComments(APKTotalInfo parent) {
		super(parent);
	}
	
	public void reload() {
	}
	
	/**
	 * 获取用户评论列表
	 * @return
	 */
	public List<UserComments> getUserCommentsList() {
		return this.userCommentsList;
	}
	
	/**
	 * 添加我的评论
	 * @param comments
	 */
	public void addMyComments(String comments) {
	}
	
	public class UserComments{
		private String userName;         //用户名称
		private Timestamp commentsDate;  //评论时间戳
		private String comments;         //用户评论内容
		
		public UserComments(String user, String comment, Timestamp date) {
			this.userName = user;
			this.comments = comment;
			this.commentsDate = date;
		}
		
		public String getUserName() {
			return this.userName;
		}
		
		public String getTimeStr() {
			return this.commentsDate.toString().substring(0, 16);
		}
		
		public String getComments() {
			return this.comments;
		}
	}
}
